package cn.mes.module.mes.controller.admin.basemachineinfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import com.alibaba.excel.annotation.*;
import cn.mes.framework.excel.core.annotations.DictFormat;
import cn.mes.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 机台产线基础信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class BaseMachineInfoRespVO {

    @Schema(description = "机台信息ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10333")
    @ExcelProperty("机台信息ID")
    private String id;

    @Schema(description = "机台区域代码")
    @ExcelProperty("机台区域代码")
    private String machineAreaCode;

    @Schema(description = "机台区域")
    @ExcelProperty("机台区域")
    private String machineArea;

    @Schema(description = "机台名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @ExcelProperty("机台名称")
    private String machineName;

    @Schema(description = "机台代码")
    @ExcelProperty("机台代码")
    private String machineCode;

    @Schema(description = "机台参数")
    @ExcelProperty("机台参数")
    private String machineProperty;

    @Schema(description = "机台品牌")
    @ExcelProperty("机台品牌")
    private String machineBrand;

    @Schema(description = "PLC编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "23509")
    @ExcelProperty("PLC编号")
    private String machinePlcId;

    @Schema(description = "项目编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "30217")
    @ExcelProperty("项目编号")
    private String projectId;

    @Schema(description = "区域编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "30674")
    @ExcelProperty("区域编号")
    private String regionId;

    @Schema(description = "是否有电子秤", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "是否有电子秤", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean hasWeight;

    @Schema(description = "电子秤数量")
    @ExcelProperty("电子秤数量")
    private Integer weightNum;

    @Schema(description = "是否用于人力排班", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "是否用于人力排班", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean isScheduling;

    @Schema(description = "是否是机台", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "是否是机台", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean isMachine;

    @Schema(description = "显示顺序")
    @ExcelProperty("显示顺序")
    private Integer orderNo;

    @Schema(description = "车间ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29017")
    @ExcelProperty("车间ID")
    private String workShopId;

    @Schema(description = "区域ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25712")
    @ExcelProperty("区域ID")
    private String machineAreaId;

    @Schema(description = "设备状态")
    @ExcelProperty("设备状态")
    private Integer status;

    @Schema(description = "是否在线")
    @ExcelProperty("是否在线")
    @DictFormat("mes_device_offline") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean offline;




}